<?php
/* @var $model Article */


$this->pageHeader = t('PAGE_HEADER_CREATE',  'article');
$this->pageTitle = t('PAGE_TITLE','article');
$toolbar = new LGToolbar();
$toolbar->ButtonSave(t('BTN_SAVE'), '#article-_form-form', ActionType::SAVE);
$toolbar->ButtonSave(t('BTN_SAVE_AND_CLOSE', 'article'), '#article-_form-form', ActionType::SAVE_CLOSE);
$toolbar->ButtonSave(t('BTN_SAVE_AND_NEW', 'article'), '#article-_form-form', ActionType::SAVE_NEW);
$toolbar->Cancel('btnCancel',t('BTN_CANCEL'));
$this->pageToolbar = $toolbar->mergeToolbar();
$this->breadcrumbs = array('Management', t('LBL_ARTICLE', 'article') => array('Index'));
?>

<?php
//Load deafult menu_type_id

$stateMenu = Yii::app()->user->getState(app()->controller->id . ArticleController::MODEL_CLASS_NAME);
if (!isset($model->catid) && isset($stateMenu['catid'])) {
    $model->catid = $stateMenu['catid'];
}
?>
<?php    
    $this->renderPartial('_form', array('model'=>$model));
?>
